package org.dromara.system.service;

import org.dromara.system.domain.XcxSubscribeProjectUnit;
import org.dromara.system.domain.vo.XcxSubscribeProjectUnitVo;
import org.dromara.system.domain.bo.XcxSubscribeProjectUnitBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订阅项目单位Service接口
 *
 * @author Lion Li
 * @date 2024-07-01
 */
public interface IXcxSubscribeProjectUnitService {

    /**
     * 查询订阅项目单位
     */
    XcxSubscribeProjectUnitVo queryById(Long id);

    /**
     * 查询订阅项目单位列表
     */
    TableDataInfo<XcxSubscribeProjectUnitVo> queryPageList(XcxSubscribeProjectUnitBo bo, PageQuery pageQuery);

    /**
     * 查询订阅项目单位列表
     */
    List<XcxSubscribeProjectUnitVo> queryList(XcxSubscribeProjectUnitBo bo);

    /**
     * 新增订阅项目单位
     */
    Boolean insertByBo(XcxSubscribeProjectUnitBo bo);

    /**
     * 修改订阅项目单位
     */
    Boolean updateByBo(XcxSubscribeProjectUnitBo bo);

    /**
     * 校验并批量删除订阅项目单位信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);


}
